<div class="span12">
    <!--tombol cetak report-->
    <div class="row-fluid">
        <div class="span12">
            <?php echo form_open('admin/dosen_add', 'class="form-horizontal"') ?>
            <legend>Tambah Dosen</legend>
            <div class="control-group">
                <label class="control-label">NIP</label>
                <div class="controls">
                    <input type="text" placeholder="NIP" name="nip">
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">Nama</label>
                <div class="controls">
                    <input type="text" placeholder="Nama" name="nama">
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">Email</label>
                <div class="controls">
                    <input type="text" placeholder="Email" name="email">
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">Telp</label>
                <div class="controls">
                    <input type="text" placeholder="Telp" name="telp">
                </div>
            </div>
            <div class="control-group">
                <div class="controls">
                    <button type="submit" class="btn btn-info">Add</button>
                </div>
            </div>
            <?php echo form_close() ?>
        </div>
    </div>
    <hr>
    <div class="row-fluid">
        <!--tabel-->
        <table class="table table-bordered table-striped">
            <colgroup>
                <col class="span1">
                <col class="span7">
            </colgroup>
            <thead align="center">
                <tr>
                    <th colspan="5" style="text-align: center; background-color:#610E54; color:white;">DAFTAR DOSEN</th>
                </tr>
                <tr>
                    <th>NIP</th>
                    <th>Nama</th>
                    <th>Email</th>
                    <th class="span3">Telp</th>
                    <th>Action</th>
                </tr>
            </thead>
            <tbody>
                <?php foreach ($dosen as $data): ?> 
                    <tr>
                        <td><span class="label label-info"><?php echo $data->nip ?></span></td>
                        <td><?php echo $data->nama ?></td>
                        <td><?php echo $data->email ?></td>
                        <td><?php echo $data->telp ?></td>
                        <td><?php echo anchor('admin/gantiPass/' . $data->nip, 'Reset Password') ?> || <?php echo anchor('admin/delUser/' . $data->nip, 'Hapus User') ?></td>
                </tbody>
            <?php endforeach; ?>
        </table>
        <?php echo $this->pagination->create_links(); ?>
    </div>
</div>